
namespace ntools.NetduinoGo.PlusModule.NetduinoGo.Framework
{
    public class File
    {
        public static bool Exists(string path)
        {
            return Plus.Link.Call(Link.INSTANCE_FILE, Link.COMMAND_FILE_EXISTS, System.Text.Encoding.UTF8.GetBytes(path))[0] == 1;
        }

        public static void Delete(string path)
        {
            Plus.Link.Call(Link.INSTANCE_FILE, Link.COMMAND_FILE_DELETE, System.Text.Encoding.UTF8.GetBytes(path));
        }
    }
}
